package com.randi.common.constant;

/**
 * @author ziye
 */
public class CacheConstants {

    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_USER_KEY = "login_user:";

    /**
     * 认证TOKEN redis key
     */
    public static final String LOGIN_TOKEN_ACCESS_KEY = "login_token_access:";

    /**
     * 刷新TOKEN redis key
     */
    public static final String LOGIN_TOKEN_REFRESH_KEY = "login_token_refresh:";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 加密盐 redis key
     */
    public static final String SALT_KEY = "salt:";

    /**
     * 文件下载 redis key
     */
    public static final String FILE_DOWNLOAD_KEY = "file_download:";
    /**
     * 数据导出下载 redis key
     */
    public static final String EXPORT_TASK_KEY = "export_file:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 限流 redis key
     */
    public static final String RATE_LIMIT_KEY = "rate_limit:";

    /**
     * 登录账户密码错误次数 redis key
     */
    public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";

    /**
     * 修改账户密码错误次数 redis key
     */
    public static final String PWD_EDIT_ERR_CNT_KEY = "pwd_edit_err_cnt:";

    /**
     * 缓存用户信息
     */
    public static final String SYS_USER = "sys_user";

    /**
     * 缓存用户角色信息
     */
    public static final String SYS_USER_ROLE = "sys_user_role";


    /**
     * 缓存角色信息
     */
    public static final String SYS_ROLE = "sys_role";

    /**
     * 缓存角色菜单信息
     */
    public static final String SYS_ROLE_MENU = "sys_role_menu";

    /**
     * 缓存菜单信息
     */
    public static final String SYS_MENU = "sys_menu";

    /**
     * 缓存字典信息
     */
    public static final String SYS_NOTICE = "sys_notice";

    /**
     * 缓存字典信息
     */
    public static final String SYS_DICT = "sys_dict";

    /**
     * 缓存字典数据信息
     */
    public static final String SYS_DICT_DATA = "sys_dict_data";

    /**
     * 登录日志信息
     */
    public static final String SYS_LOG_LOGIN = "sys_log_login";

    /**
     * 操作日志信息
     */
    public static final String SYS_LOG_OPERATE = "sys_log_operate";
}
